<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户信息</title>
     <style>
        h1:after{
            filter:url(#erode2);
        }
        body{
            background-color:powderblue;
        }
     </style>
</head>
<body>
    <h1>用户信息调用</h1>
    用户：<p id="Account"></p>
    密码：<p id="Password"></p>
    重复密码：<p id="Pwd"></p>
    姓名：<p id="Xingming"></p>
    身份证号：<p id="Card"></p>
    电话号码：<p id="Phone"></p>
    电子邮箱：<p id="Email"></p>    
</body>
<script>
    function Userinfo()
    {
        var name,value;
        var str=location.href;
        var num=str.indexOf("?")
        str=str.substr(num+1);

        var arr=str.split("&");
        for(var i=0;i < arr.length;i++){
            num=arr[i].indexOf("=");
            if(num>0){
                name=arr[i].substring(0,num);
                value=arr[i].substr(num+1);
                this[name]=value;
            }
        }
    }
    var Request=new Userinfo();
    document.getElementById("Account").innerHTML=Request.Account;
    document.getElementById("Password").innerHTML=Request.Password;
    document.getElementById("Pwd").innerHTML=Request.Pwd;
    document.getElementById("Xingming").innerHTML=Request.Xingming;
    document.getElementById("Card").innerHTML=Request.Card;
    document.getElementById("Phone").innerHTML=Request.Phone;
    document.getElementById("Email").innerHTML=Request.Email;
</script>
</html>